docs: add <script nomodule> iife fallback to recommended snippets - #41
docs: add <script nomodule> iife fallback to recommended snippets#41forgetso wants to merge 1 commit into
Conversation
Add procaptcha.bundle.iife.js as a nomodule sibling to every procaptcha.bundle.js <script> tag across all 6 language docs (en, de, fr, es, it, pt-br) and all 4 affected pages (basics/index, basics/invisible-captcha, basics/client-side-rendering, demos/client-example-bundle). The iife artifact mirrors the friendly-challenge pattern: crawlers and runtimes that don't execute type="module" scripts (notably Ahrefs' renderer) will fall back to the iife and still mount the widget / expose the outbound prosopo.io link in the rendered DOM. Where the snippet was previously a bare `<script src=...>` (basics/index, invisible-captcha), the recommended pattern is also upgraded to `<script type="module" src=...>` so the nomodule fallback semantics apply. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for peaceful-pothos-9e62ce ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No updates since Nothing is lost — Converting to draft disables auto-merge, so PRs with auto-merge enabled are excluded from this entirely. |
|
No updates since Nothing is lost — Converting to draft disables auto-merge, so PRs with auto-merge enabled are excluded from this entirely. |
Summary
<script nomodule src=".../procaptcha.bundle.iife.js" async defer>as a sibling fallback to every<script type="module">Procaptcha snippet across all 6 language docs (en, de, fr, es, it, pt-br) and 4 affected pages (basics/index,basics/invisible-captcha,basics/client-side-rendering,demos/client-example-bundle).type="module"(notably Ahrefs') will fall back to the iife and still mount the widget / expose the outbound prosopo.io link in the rendered DOM.<script src=...>(basics/index,basics/invisible-captcha), upgraded to<script type="module" src=...>so the nomodule fallback semantics actually apply.Pairs with
publish_release.ymliife build (so the iife lands in future release zips by default)Test plan
basics/*anddemos/*page in en + one other locale to confirm renderinghttps://js.prosopo.io/js/procaptcha.bundle.iife.jsresolves on prod CDN once i18n(ko): Translateframework-components.mdxwithastro/docs#3388 has shipped a release🤖 Generated with Claude Code